package com.tio.showcase.common;

import org.tio.core.intf.Packet;

/**
 * Author      : liyuemin
 * Time        : 2017/12/15 10:40
 * Description :通讯包存储消息内容
 */
public class ShowcasePacket extends Packet{

    private static final long serialVersionUID = -5481926483435771100L;
    public static final int HEADER_LENGHT = 5;//消息头长度
    public static final String CHARST = "utf-8";


    private  byte type;
    private byte[] body;

    public ShowcasePacket (){
        super();
    }

    public ShowcasePacket(byte type,byte[] body){
        super();
        this.type = type;
        this.body = body;
    }

    public byte getType() {
        return type;
    }

    public void setType(byte type) {
        this.type = type;
    }

    public byte[] getBody() {
        return body;
    }

    public void setBody(byte[] body) {
        this.body = body;
    }
}
